<div>
    <div class="breadcrumb">
        <a href="javascript:void(0)" >当前位置 用户管理</a>
        <a href="javascript:void(0)" >用户管理</a>
        <a href="javascript:void(0)" ng-click="cancel()">网吧组配置</a>
        <a href="javascript:void(0)" >导航配置</a>
    </div>
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
            <div class="panel main-table">
                <div class="title-yx-box">
                    <i></i>&nbsp;&nbsp;主页业务配置
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <small style="color: red;font-size: 14px;">此处{{ obj.bargroup_id == 0? "批量":"" }}修改用户的相关配置,请谨慎操作！</small>
                </div>
                <hr />
                <form class="form-yx" name="fm">
                    <div class="form-yx-box">
                        <label class="form-yx-label">网吧组</label>
                        <div class="form-yx-control">
                            <p style=" line-height: 33px;">{{ obj.bargroup_id == 0? "所有网吧组": obj.bargroup_name }}</p>
                        </div>
                    </div>
                    <div class="form-yx-box">
                        <label class="form-yx-label">开启状态</label>
                        <div class="form-yx-control">
                             <label class="xian-checks2" > <input type="checkbox" ng-model="obj.flag" ng-true-value="1" ng-false-value="0"> <i></i> </label>
                        </div>
                    </div>
                    <div class="form-yx-box">
                        <label class="form-yx-label must">系统延时</label>
                        <div class="form-yx-control">
                            <input type="text" name="delay_time" style="width:180px" placeholder="请输入时间" required ng-model="obj.delay_time" only-number>
                            <span>秒</span>
                        </div>
                        <div class="form-yx-msg-box">
                            <span class="form-yx-msg-error" ng-show="( ( fm.delay_time.$dirty ) && fm.delay_time.$error.required )">本项必填</span>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <label class="form-yx-label ">主页选择</label>
                        <div class="form-yx-control">
                            <input select2 ng-model="obj.mainType" select2-model="obj2.mainType"
                                config="data.mainType" placeholder="请选择" style="width:370px" type="text"/>
                            <input type="text" name="mainType" ng-model="obj.mainType" required class="form-yx-kanbudao">
                        </div>
                        <div class="form-yx-msg-box">
                            <span class="form-yx-msg-error" ng-show="( fm.mainType.$invalid )">本项必填</span>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <label class="form-yx-label ">浏览器锁定</label>
                        <div class="form-yx-control">
                            <input select2 ng-model="obj.browerLock" select2-model="obj2.browerLock" config="data.browerLock" placeholder="请选择" style="width:370px" type="text"/>
                            <input type="text" name="browerLock" ng-model="obj.browerLock" required class="form-yx-kanbudao">
                        </div>
                        <div class="form-yx-msg-box">
                            <span class="form-yx-msg-error" ng-show="( fm.browerLock.$invalid )">本项必填</span>
                        </div>
                    </div>
                    <!-- <div class="form-yx-box" ng-if="( obj.mainType==4 )">
                        <label class="form-yx-label must">主PID</label>
                        <div class="form-yx-control">
                            <input select2 ng-model="$parent.obj.pid" select2-model="$parent.obj2.pid" config="$parent.data.pidList" ng-change="$parent.makeUrl()" placeholder="请选择" style="width:370px" type="text"/>
                            <input type="text" name="pid" ng-model="$parent.obj.pid" required class="form-yx-kanbudao">
                        </div>
                        <div class="form-yx-msg-box">
                            <span class="form-yx-msg-error" ng-show="( fm.pid.$invalid )">本项必填</span>
                        </div>
                    </div> -->
                    <div class="form-yx-box" >
                        <label class="form-yx-label ">锁定形式</label>
                        <div class="form-yx-control">
                            <input select2 ng-model="obj.locktype" select2-model="obj2.locktype"
                                config="data.locktype" placeholder="请选择" style="width:370px" type="text"/>
                            <input type="text" name="locktype" ng-model="obj.locktype" required class="form-yx-kanbudao">
                        </div>
                        <div class="form-yx-msg-box">
                            <span class="form-yx-msg-error" ng-show="( fm.locktype.$invalid )">本项必填</span>
                        </div>
                    </div>
                    <div class="form-yx-box">
                        <label class="form-yx-label must">指定域名绑定</label>
                        <div class="form-yx-control">
                            <input type="text" name="mainComain" style="width:370px" placeholder="请输入内容"
                                required ng-model="obj.mainComain" ng-change="changeMainUrl()">
                        </div>
                        <div class="form-yx-msg-box">
                            <span class="form-yx-msg-error" ng-show="( ( fm.mainComain.$dirty ) && fm.mainComain.$error.required )">本项必填</span>
                            <span class="form-yx-msg-info" ng-show="( obj.mainComainError&&obj.mainType!=4&&obj.mainType!=5 )">参数“/home”不可删除</span>
                        </div>
                    </div>
                    <div class="form-yx-box">
                        <label class="form-yx-label">主页地址</label>
                        <div class="form-yx-control">
                            <h6 class="text-danger">{{ obj.mainUrl ||"无"}}</h6>
                        </div>
                    </div>
                    <div class="form-yx-box">
                        <label class="form-yx-label">是否开启桌标遮挡</label>
                        <div class="form-yx-control">
                             <label class="xian-checks2" > <input type="checkbox" ng-model="obj.isCover" ng-true-value="1" ng-false-value="0"> <i></i> </label>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <label class="form-yx-label">是否上报附加信息</label>
                        <div class="form-yx-control">
                            <label class="checkbox-inline i-checks" > <input type="radio" ng-model="obj.isLog" value="1"> <i></i> 是 </label>
                            <label class="checkbox-inline i-checks" > <input type="radio" ng-model="obj.isLog" value="0"> <i></i> 否 </label>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <label class="form-yx-label">是否重命名浏览器</label>
                        <div class="form-yx-control">
                            <label class="checkbox-inline i-checks" > <input type="radio" ng-model="obj.isRename" value="1"> <i></i> 是 </label>
                            <label class="checkbox-inline i-checks" > <input type="radio" ng-model="obj.isRename" value="0"> <i></i> 否 </label>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <label class="form-yx-label">拦截网址</label>
                        <div class="form-yx-control inline">
                            <label class="xian-checks2 xian-checks-blue xian-checks-lan" > <input type="checkbox" ng-model="add1.a" ng-true-value="1" ng-false-value="0"> <i></i> </label>
                            <input type="text" ng-model="add1.b" name="d6" class="" style="width:300px" >
                            <button type="button" class="btn btn-info" ng-click="add1.c()" style="margin-left:10px">添加</button>
                        </div>
                        <div class="form-yx-msg-box">
                            <span class="form-yx-msg-error" ng-show="( add1.d && add1.b.length==0 )">本项必填</span>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <div class="table-responsive table-yx-box">
                            <div style="width:700px">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th style="width:10%;text-align:center;">状态</th>
                                        <th style="width:30%;text-align:center;">网址</th>
                                        <th style="width:10%;text-align:center;">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ng-show="obj.interceptNet.length==0">
                                        <td colspan="99"><center>无数据</center></td>
                                    </tr>
                                </tbody>
                                <tbody ng-repeat="row in obj.interceptNet">
                                    <tr>
                                        <td style="text-align:center;"><div>{{ row.type==1?"拦截":"不拦截" }}</div></td>
                                        <td style="text-align:center;"><p style="width:300px;">{{ row.net }}</p></td>
                                        <td style="text-align:center;"><a class="btn-link" href="javascript:void(0)" ng-click="add1.e(row)">删除</a></td>
                                    </tr>
                                </tbody>
                            </table>
                            </div>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <label class="form-yx-label">拦截桌标</label>
                        <div class="form-yx-control inline">
                            <label class="xian-checks2 xian-checks-blue xian-checks-lan" > <input type="checkbox" ng-model="add2.a" ng-true-value="1" ng-false-value="0"> <i></i> </label>
                            <input type="text" ng-model="add2.b" name="d6" class="" style="width:300px" >
                            <button type="button" class="btn btn-info" ng-click="add2.c()" style="margin-left:10px">添加</button>
                        </div>
                        <div class="form-yx-msg-box">
                            <span class="form-yx-msg-error" ng-show="( add2.d && add2.b.length==0 )">本项必填</span>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <div class="table-responsive table-yx-box">
                            <div style="width:700px">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th style="width:10%;text-align:center;">状态</th>
                                        <th style="width:30%;text-align:center;">进程名</th>
                                        <th style="width:10%;text-align:center;">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ng-show="obj.interceptIcon.length==0">
                                        <td colspan="99"><center>无数据</center></td>
                                    </tr>
                                </tbody>
                                <tbody ng-repeat="row in obj.interceptIcon">
                                    <tr>
                                        <td style="text-align:center;"><p>{{ row.type==1?"拦截":"不拦截" }}</p></td>
                                        <td style="text-align:center;"><p style="width:300px;">{{ row.icon }}</p></td>
                                        <td style="text-align:center;"><a class="btn-link" href="javascript:void(0)" ng-click="add2.e(row)">删除</a></td>
                                    </tr>
                                </tbody>
                            </table>
                            </div>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <label class="form-yx-label">锁定方式</label>
                        <div class="table-responsive table-yx-box">
                            <div style="width:700px">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th style="width:20%;text-align:center;">锁定方式名称</th>
                                        <th style="width:10%;text-align:center;">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ng-show="obj.lockList.length==0">
                                        <td colspan="99"><center>无数据</center></td>
                                    </tr>
                                </tbody>
                                <tbody ng-repeat="row in obj.lockList">
                                    <tr>
                                        <td style="text-align:center;"><p style="width:400px;">{{ row.name }}</p></td>
                                        <td style="text-align:center;"><label class="xian-checks2 xian-checks-suo" > <input type="checkbox" ng-model="row.type" ng-true-value="1" ng-false-value="0"> <i></i> </label></td>
                                    </tr>
                                </tbody>
                            </table>
                            </div>
                        </div>
                    </div>
                    <div class="form-yx-box" >
                        <label class="form-yx-label">自定义配置</label>
                        <div class="form-yx-control">
                            <textarea cols="3" rows="4" style="width:700px" json-str name="customConfig" ng-model="obj.customConfig" placeholder="输入标准的json格式"></textarea>
                        </div>
                        <br />
                        <div class="form-yx-msg-box">
                            <span class="form-yx-msg-error" ng-show="( fm.customConfig.$dirty && fm.customConfig.$error.json )">请输入标准JSON格式</span>
                        </div>
                    </div>
                    <hr style="border-style: dashed;" />
                    <div class="form-yx-box" >
                        <label class="form-yx-label"></label>
                        <div class="form-yx-control">
                            <input type="button" class="btn btn-red" ng-disabled="fm.$invalid" ng-click="clicksubmit()" value="保存"></input>
                            <input type="button" class="btn btn-grey" ng-click="cancel()" value="取消" style="margin-left:20px;"></input>
                        </div>
                    </div>
                </form>
            </div>
            </div>
        </div>
    </div>
</div>
